package com.cloudlinkin.constant;

/*
 * GEGW 常量表
 */
public class GegwConstant {

	/*
	 * 常用编码
	 */
	public static final String CHARSET_GBK = "GBK";
	public static final String CHARSET_UTF_8 = "UTF-8";
	// ucs2 编码时使用
	public static final String CHARSET_EN_UCS2 = "UnicodeBigUnmarked";
	// ucs2 解码时使用
	public static final String CHARSET_DE_UCS2 = "UTF-16BE";
	public static final String CHARSET_ASCII = "ASCII";
	/*
	 * redis key 前缀
	 */

	public static final String KEY_PREFIX_RESP = "Resp:";
	public static final String KEY_PREFIX_TEXT = "Text:";
	public static final String KEY_PREFIX_MOTEXT = "MoText:";
	public static final String KEY_PREFIX_MODELIVER = "MoDeliver:";
	public static final String KEY_PREFIX_SEQID="SeqId:";

	/*
	 * 信息格式 0：ASCII串 3：短信写卡操作 4：二进制信息 8：UCS2编码 15：含GB汉字 。。。。。。
	 * 
	 */
	public static final int MSG_FMT_ASCII = 0;
	public static final int MSG_FMT_WRITE = 3;
	public static final int MSG_FMT_BYTE = 4;
	public static final int MSG_FMT_UCS2 = 8;
	public static final int MSG_FMT_GBK = 15;

	/*
	 * 错误码定义
	 */
	public static final int RETURN_CODE_0 = 0;
	public static final int RETURN_CODE_101 = 101;
	public static final int RETURN_CODE_102 = 102;
	public static final int RETURN_CODE_103 = 103;
	public static final String RETURN_MSG_0 = "success";
	public static final String RETURN_MSG_101 = "参数错误";
	public static final String RETURN_MSG_102 = "内部错误";
	public static final String RETURN_MSG_103 = "";

	/*
	 * 内容类型
	 */
	public static final int CONTENT_TYPE_0=0;//二进制
	public static final int CONTENT_TYPE_1=1;//普通文本
	
}
